<template>
  <div class="miaosha">
    <div>
      <div class="left">
        <span>京东秒杀</span>
        <span>限时低价</span>
        <button>去抢购→</button>
      </div>
      <ul>
        <li v-for="item in skill" @click="todetail(item.proid)">
          <img :src="item.img1" alt="">
          ￥{{ item.originprice }}
        </li>

      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: ['skill'],
  methods: {
    todetail(proid) {
      this.$router.push("/detail/" + proid)
    }
  }
}
</script>

<style lang="less" scoped>
.miaosha {
  height: 107px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(#f2eded, #fff);
  padding-bottom: 10px;
}

.miaosha>div {
  height: 95%;
  width: 95%;
  background-color: red;
  border: 2px solid red;
  border-radius: 20px;
  display: flex;
}

.miaosha>div>.left {
  width: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 10px;
  box-sizing: border-box;
  font-size: 12px;
}

.miaosha>div>.left>button {
  border: 0;
  border-radius: 9px;
  font-size: 10px;
  width: 40px;
}

.miaosha>div>ul {
  border-radius: 20px;
  background-color: white;
  display: flex;
  flex: 1;
  overflow-x: auto;
}

.miaosha>div>ul::-webkit-scrollbar {
  display: none;
}

.miaosha>div>ul>li {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FF5555;
}

.miaosha>div>ul>li>img {
  width: 60px;
  height: 60px;
}
</style>